Skip to content

Conversation

@gorelovniko
Copy link

No description provided.



t = TrafficLight()
t.running()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

x = int(input('Введите длину участка в метрах: '))
y = int(input('Введите ширину участка в метрах: '))
r = Road(x, y)
r.asphalt_mass()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.weight = 25
self.height = 0.05

нужно сделать атрибутами на уровне класса
они постоянны


obj = Position("Иван", "Петров", "инженер", 500, 100)
print(obj.get_full_name())
print(obj.income)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено


obj3 = PoliceCar(150, 'Белый', 'Ford', 'True')
print(f"Автомобиль - {obj3.name}, полицейский {obj3.is_police}")
print(f"{obj3.police()}")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено


pen3 = Pen('Гелевая ручка')
print(f"Надо написать название с помощью: {pen3.title}")
print(f"Надо выделить местоимения с помощью: {handle1.title}")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants